package behavior.state;

/**
 * 维修状态
 */
public class RepairState implements VehicleState{

    @Override
    public void inOut(Context context) {
        context.setVehicleState(Context.IN_OUT_STATE);
        context.getVehicleState().inOut(context);
    }

    @Override
    public void start(Context context) {
    }

    @Override
    public void stop(Context context) {
    }

    @Override
    public void charge(Context context) {
        context.setVehicleState(Context.CHARGE_STATE);
        context.getVehicleState().charge(context);
    }

    @Override
    public void repair(Context context) {
        System.out.println("车辆检修");
    }
}
